package com.hdoit.ares.logical.official.dao;

import java.util.List;

import com.hdoit.ares.logical.official.model.Artical;
import com.hdoit.ares.logical.official.model.ArticalClassify;
import com.hdoit.ares.logical.viewmodel.official.ArticalClassifySearch;
import com.hdoit.ares.logical.viewmodel.official.ArticalSearch;
import com.tennetcn.common.dao.base.ISuperDao;
import com.tennetcn.common.message.PagerModel;
/**
 * @author      yujinhui
 * @email       
 * @createtime  2018年01月10日 09:53:35
 * @comment
 */
public interface IArticalDao extends ISuperDao<Artical>{
	public List<Artical> queryList(ArticalSearch search, PagerModel pagerModel);

	public List<Artical> queryList(ArticalSearch search);

	public int queryCount(ArticalSearch search);
	
	/*根据Id查询文章*/
	public Artical queryArticalById(String id);
	/*根据类型Id查询该类型下的所有文章*/
	public List<Artical> queryListArtical(String typeId);
	
	//多表联合查询出点赞数和浏览次数
	public List<Artical> queryArticals(ArticalSearch search);
	
}